package model;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;

public class TestFile
{
	
	public static void generate(String fname)
	{
		try
		{
			BufferedWriter output = new BufferedWriter( new FileWriter(fname) );
			
			output.write( "L 10 20 30 40 2 0 0 255\n" );
			output.write( "R 10 20 7 50 0 0 127 0\n" );
			output.write( "E 60 -20 30 40 3 255 0 0\n" );
			output.write( "B 60 60 70 70 60 90 60 100 2 0 0 255\n" );
			output.write( "T 80 40 15 \"This is the text to draw\" 0 255 0" );
			
			output.close();
			
		}
		catch (Exception e)
		{
			System.out.println(e);
		}
	}
	
	
	public static void remove (String fname)
	{
		File file = new File(fname);
		
		file.delete();
		
	}
	
}
